﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.ServicesDomain
{
   public class EMRService
    {
        #region Properties
        public Guid ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public decimal Charge { get; set; }
        public string Description { get; set; }
        public string Notes { get; set; }        
        #endregion

        #region ForeignKeyProperties
       [ForeignKey("Group")]
        public int GroupID { get; set; }
       [ForeignKey("ServiceType")]
        public int TypeID { get; set; }
       [ForeignKey("Picture")]
        public Nullable< Guid> PictureID { get; set; } 
        #endregion

        #region NavigationalProperties      
        public virtual EMRServiceGroup Group { get; set; }
        public virtual EMRServiceType ServiceType { get; set; }
        public virtual ServicePicture Picture { get; set; }

        public virtual ICollection<ServiceItem> ServiceItems { get; set; }
        #endregion


    }
}
